package com.catl.plc.meta;

public enum RegisterTypeEnums {
    //    0x01 (Read Coils)
//    0x02 (Read Discrete Inputs)
//    0x03 (Read Holding Registers)
//    0x04 (Read Input Registers)
//    0x05 (Write Single Coil)
//    0x06 (Write Single Register)
//    0x0F (Write Multiple Coils)
//    0x10 (Write Multiple Registers)
    H00("0x", "Coils", "读写线圈状态"),
    H05("0x", "Coil", "写单个线圈状态"),
    H01("1x", "Discrete Input", "只读离散输入状态"),
    H03("3x", "Input Register", "只读输入寄存器"),
    H04("4x", "Holding Registers", "读写保持寄存器"),
    H06("0x", "Holding Register", "写单个保持寄存器"),
    ;

    private String code;
    private String name;
    private String comment;

    RegisterTypeEnums() {
    }

    RegisterTypeEnums(String code, String name, String comment) {
        this.code = code;
        this.name = name;
        this.comment = comment;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getComment() {
        return comment;
    }
}
